-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Refresh Token Flow #19
Conversation
Awesome @jeffreyflynt I will review after the weekend. @bratelefant this might be interesting to you, too |
It looks as if there were some linting issues, I fixed those and pushed another commit. |
@jeffreyflynt I'll need a bit more time because I need to complete Meteor 3.0 migration with this package |
I can make a PR for said migration as I had done this for myself if that will help; unless you have already begun. |
@jeffreyflynt yes I already did that but didn't publish or push as I wanted to test locally first. I now made it public via #21 and also released You can review it if you like. In the meantime I will check on your PR what I can do to get the tests fixed. |
Thanks. I fixed the issue that was causing the tests to fail. I added |
@jeffreyflynt I would merge this into the current branch and release another Meteor 2.x compatible version with your contribution. For the #21 there needs to be a Meteor 3 compatible implementation. If you want I can add this to #21 but I'm also fine if you want to do it |
Hey @jeffreyflynt, how are you? |
Hi @MaxwelSant , I am not fully sure tbh. @jankapunkt implemented it back in, in the current open PR. You could add this code block to your code to get this working: oauth2-server/lib/model/model.js Line 93 in 0550c47
|
Hi @MaxwelSant @jeffreyflynt the However maybe I was thinking too strong in terms of abstraction and noone will ever come into that usecase? |
This implements the refresh token flow.
I see the refresh token is stored along with the access token, so I modified
getRefreshToken
to query on the Access Token collection.Let me know if you have any questions or suggestions.